﻿<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>收到的消息</title>

    <!--common-->
    <link href="/resources/src/css/main.css" rel="stylesheet">
    <link href="/resources/src/css/responsive.css" rel="stylesheet">
    <link href="/resources/src/css/message.css" rel="stylesheet">
     <link href="/resources/src/css/paginate.css" rel="stylesheet">
</head>
<body class="sticky-header left-side-collapsed" style="background-color: #f5f8f9;">
    
    <jsp:include page="../common/left-slide.jsp" flush="true">
        <jsp:param name="pageHeader" value="messageHeader" />
    </jsp:include>
    <div class="main-content">
        <jsp:include page="../common/header-start.jsp" />
        <div class="message clearfix">
            <div class="mcBar">
                <div class="mcBar_title"><b>消息中心</b></div>
                <div class="mcBar_list">
                    <c:if test="${user.type==1 }">
	                    <a href="/message/addMessage">新建消息</a>
	                    <a href="/message/sendList">发出的消息</a>
                	</c:if>
                    <a href="/message/receiveList" class="active">收到的消息 <span class="newReceive"></span></a>
                    <a href="/message/dustbinList">垃圾箱</a>
                </div>
            </div>
            <div class="mcFun">
                <div class="mcFun_title"><b>收到的消息</b></div>
                <div class="outList">
                    <ul id="mytable">
                    	<input type="hidden" id="pageNo" value="${page.pageNo }"/>
						<input type="hidden" id="pageSize" value="${page.pageSize }"/>
						<input type="hidden" id="totalCount" value="${page.totalCount }"/>
						<input type="hidden" id="totalPages" value="${page.totalPages }"/>
                    	<c:forEach items="${page.result }" var="message">
	                        <li class="clearfix">
	                            <div class="mcIcon"><i class="iconfont icon-notice1"></i></div>
	                            <div class="outContent">
	                            	asfdsa
	                                <div class="topLine clearfix">
	                                    <h4>${message.title }</h4>
	                                    <span class="time">${message.createTime }</span>
	                                </div>
	                                <div class="contentTxt">${message.content }</div>
	                                <div class="delMessage"><i class="iconfont icon-shanchu2" onclick="recriveDelete(${message.id})" icontip='删除'></i></div>
	                            </div>
	                        </li>
                      </c:forEach>
                        <c:if test="${page.totalCount==0}">
                        	<li class="text-center" id="empty-tips">
		                        <img src="/resources/src/images/center003.png"/>
		                        <p>暂无消息</p>
		                    </li>
                        </c:if>
                    </ul>
                </div>
                 <!--分页-->
				<!--pagination start-->
				<jsp:include page="/common/page.jsp" />
				<!--pagination end-->
            </div>
        </div>
    </div>
    <script src="/resources/src/js/jquery-1.9.1.min.js"></script>
    <script src="/resources/src/js/jquery.nicescroll.js"></script>
    <script src="/resources/src/js/main.js"></script>    
    <script src="/resources/src/js/jquery.paginate.js"></script>
    <script src="/resources/src/js/message.js"></script>  
    <script src="/resources/src/js/page.js"></script>      
</body>
</html>